import Vue from 'vue';
import VueRouter from 'vue-router';
import news from '@/components/content/news';
import read from '@/components/content/read';
import Media from '@/components/content/media';
import personal from '@/components/content/peronal';
import one from '@/components/content/one';
import two from '@/components/content/two';
Vue.use(VueRouter);
export default new VueRouter({
	routes: [
		{
			path: '/news',
			name:'news',
			component: news,
			children:[{
	    			name:'one',
	    			path:'/news/one',
	    			component:one
	    		},
	    		{
	    			name:'two',
	    			path:'/news/two',
	    			component:two
	    		},
	    		{
					path:'/news',
					redirect: '/news/one'
				}
	    	]
		},
		{
			path: '/read',
			component: read
		},
		{
			path: '/media',
			component: Media
		},
		{
			path: '/personal',
			component: personal
		},
		{
			path:'/',
			redirect: '/news'
		}
	]
});
